
"""
 * Copyright 2009 Yogi KENT
 * 
 * This file is main part of Sotetsu.
 * 
 * Sotetsu is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 * 
 * Sotetsu is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.

"""

from . import wcwidth
from .daap import daapclient as dc


TAG_ARTIST = "Artist"
TAG_TITLE = "Title"
TAG_ALBUM = "Album"
TAG_ARTIST_W = wcwidth.wcswidth(TAG_ARTIST)
TAG_TITLE_W = wcwidth.wcswidth(TAG_TITLE)
TAG_ALBUM_W = wcwidth.wcswidth(TAG_ALBUM)
TAGSEP = ": "
TAG_W = max(TAG_ARTIST_W, TAG_TITLE_W , TAG_ALBUM_W) +wcwidth.wcswidth(TAGSEP)
#TAGSEP_W = wcwidth.wcswidth(TAGSEP)

DISPTAG = {}
DISPTAG[dc.ITEMNAME]   = "Title"
DISPTAG[dc.SONGARTIST] = "Artist"
DISPTAG[dc.SONGALBUM]  = "Album"

OK_LABEL = "OK"
CANCEL_LABEL = "CANCEL"


#(t_artist,t_title,t_album) = ("Artist", "Title", "Album")
#t_artist_w = wcwidth.wcswidth(t_artist)
#t_title_w = wcwidth.wcswidth(t_title)
#t_album_w = wcwidth.wcswidth(t_album)
#tag_w = max(t_artist_w,t_title_w,t_album_w) +wcwidth.wcswidth(sep)
